package com.xbongbong.paas.model;

import com.xbongbong.saas.domain.entity.ContractEditFileEntity;
import com.xbongbong.saas.domain.entity.ContractTemplateBaseEntity;

import java.util.List;
import java.util.Map;

/**
 * @author: yingjf
 * @date: 2023/3/7 19:20
 * @description:
 */
public interface ContractTemplateBaseModel {
    Long insert(ContractTemplateBaseEntity entity);

    void insertBatch(List<ContractTemplateBaseEntity> list);

    List<ContractTemplateBaseEntity> findEntities(Map<String, Object> param);

    Integer getEntityCount(Map<String, Object> param);

    void update(ContractTemplateBaseEntity entity);

    ContractTemplateBaseEntity getByKey(Long key, String corpid);

    Integer getCountByCorpid(String corpid);
}
